package com.shangyanzhai.forumbasedspring.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j //日志
@RestController //表示在BODY中返回数据
@RequestMapping("/text") //一级映射路径
public class TestController {
    @GetMapping("/hello")
    public String hello() {
        return "hello，spring.";
    }
}
